#import "CharInfo.h"
@implementation CharInfo
@synthesize command,state,health,magic,aiType,score;
@synthesize name,job,head,face0,face1,face2,face3,face4,arm1,arm2,arm3,arm4,arm5,arm6,body,legs,feets,icon,element;
@synthesize hand1,hand2,hand3,hand4,hand5,hand6,wapon;


-(id)init:(int) r{
    if([super init]){
		command=-1;
		
		
            race=r;
            aiType=race;
		job = @"job_basic.png";
		wapon = @"wapon_bow.png";
		element = @"element_fire.png";
            switch (race) {
				default:
				case CHAR_BAT:
                    head  =  @"bat_head.png";
                    head  =  @"bat_head.png";
					face0 =  @"bat_face_cry.png"; 
					face1 =  @"bat_face_angry.png"; 
					face2 =  @"bat_face_normal.png"; 
					face3 =  @"bat_face_smile.png"; 
					face4 =  @"bat_face_happy.png"; 
					arm1  =  @"bat_arm_l1.png";  
					arm2  =  @"bat_arm_l2.png";  
					arm3  =  @"bat_arm_l3.png";  
					arm4  =  @"bat_arm_r1.png";  
					arm5  =  @"bat_arm_r2.png";  
					arm6  =  @"bat_arm_r3.png";  
					hand1 =  @"bat_hand1.png";  
					hand2 =  @"bat_hand2.png";  
					hand3 =  @"bat_hand3.png";  
					hand4 =  @"bat_hand4.png";  
					hand5 =  @"bat_hand5.png";  
					hand6 =  @"bat_hand6.png";  
					body =   @"bat_body.png";  
					legs =   @"bat_legs.png";  
					feets =  @"bat_feets.png"; 
					icon =   @"bat_icon.png";
					name =   @"Drake";
					break;
                case CHAR_CENTAUR:
                    head = @"horse_head.png";
					face0 = @"horse_face_cry.png"; 
					face1 = @"horse_face_angry.png"; 
					face2 = @"horse_face_normal.png"; 
					face3 = @"horse_face_smile.png"; 
					face4 = @"horse_face_happy.png"; 
					arm1 =  @"horse_arm_l1.png";  
					arm2 =  @"horse_arm_l2.png";  
					arm3 =  @"horse_arm_l3.png";  
					arm4 =  @"horse_arm_r1.png";  
					arm5 =  @"horse_arm_r2.png";  
					arm6 =  @"horse_arm_r3.png";  
					hand1 =  @"horse_hand_l_rock.png";  
					hand2 =  @"horse_hand_l_scissor.png";  
					hand3 =  @"horse_hand_l_paper.png";  
					hand4 =  @"horse_hand_r_rock.png";  
					hand5 =  @"horse_hand_r_scissor.png";  
					hand6 =  @"horse_hand_r_paper.png";  
					body =   @"horse_body.png";  
					legs =   @"horse_legs.png";  
					feets =  @"horse_feets.png"; 
					icon =   @"horse_icon.png";
					name =   @"Drayd";
 					break;
                case CHAR_ELF:
                    head = @"elf_head.png";
					face0 = @"elf_face0.png";  
					face1 = @"elf_face1.png";  
					face2 = @"elf_face2.png";  
					face3 = @"elf_face3.png";  
					face4 = @"elf_face4.png";  
					arm1 =  @"elf_arm_l_down.png";  
					arm2 =  @"elf_arm_l_out.png";  
					arm3 =  @"elf_arm_l_up.png";  
					arm4 =  @"elf_arm_r_down.png";  
					arm5 =  @"elf_arm_r_out.png";  
					arm6 =  @"elf_arm_r_up.png";  
					hand1 =  @"elf_hand1.png";  
					hand2 =  @"elf_hand2.png";  
					hand3 =  @"elf_hand3.png";  
					hand4 =  @"elf_hand4.png";  
					hand5 =  @"elf_hand5.png";  
					hand6 =  @"elf_hand6.png";  
					body =  @"elf_body.png";   
					legs =  @"elf_legs.png";   
					feets = @"elf_feets.png";  
					icon =  @"elf_icon.png";   
					name =  @"silphyd";
					
                    break;
                case CHAR_LIZARD:
                    head = @"lizard_head.png";
					face0 = @"lizard_face_cry.png"; 
					face1 = @"lizard_face_angry.png"; 
					face2 = @"lizard_face_normal.png"; 
					face3 = @"lizard_face_smile.png"; 
					face4 = @"lizard_face_happy.png"; 
					arm1 =  @"lizard_arm_l1.png";  
					arm2 =  @"lizard_arm_l2.png";  
					arm3 =  @"lizard_arm_l3.png";  
					arm4 =  @"lizard_arm_r1.png";  
					arm5 =  @"lizard_arm_r2.png";  
					arm6 =  @"lizard_arm_r3.png";  
					hand1 =  @"lizard_hand1.png";  
					hand2 =  @"lizard_hand2.png";  
					hand3 =  @"lizard_hand3.png";  
					hand4 =  @"lizard_hand4.png";  
					hand5 =  @"lizard_hand5.png";  
					hand6 =  @"lizard_hand6.png";  
					body =   @"lizard_body.png";  
					legs =   @"lizard_legs.png";  
					feets =  @"lizard_feets.png"; 
					icon =   @"lizard_icon.png";
                    break;
                case CHAR_HUMAN:
                    head = @"human_head.png";
					face0 = @"human_face_cry.png"; 
					face1 = @"human_face_angry.png"; 
					face2 = @"human_face_normal.png"; 
					face3 = @"human_face_smile.png"; 
					face4 = @"human_face_happy.png"; 
					arm1 =  @"human_arm_l1.png";  
					arm2 =  @"human_arm_l2.png";  
					arm3 =  @"human_arm_l3.png";  
					arm4 =  @"human_arm_r1.png";  
					arm5 =  @"human_arm_r2.png";  
					arm6 =  @"human_arm_r3.png";  
					hand1 =  @"human_hand1.png";  
					hand2 =  @"human_hand2.png";  
					hand3 =  @"human_hand3.png";  
					hand4 =  @"human_hand4.png";  
					hand5 =  @"human_hand5.png";  
					hand6 =  @"human_hand6.png";  
					body =   @"human_body.png";  
					legs =   @"human_legs.png";  
					feets =  @"human_feets.png"; 
					icon =   @"human_icon.png";
                    break;
                case CHAR_ORC:
                    head = @"orc_head.png";
					face0 = @"orc_face_cry.png"; 
					face1 = @"orc_face_angry.png"; 
					face2 = @"orc_face_normal.png"; 
					face3 = @"orc_face_smile.png"; 
					face4 = @"orc_face_happy.png"; 
					arm1 =  @"orc_arm_l1.png";  
					arm2 =  @"orc_arm_l2.png";  
					arm3 =  @"orc_arm_l3.png";  
					arm4 =  @"orc_arm_r1.png";  
					arm5 =  @"orc_arm_r2.png";  
					arm6 =  @"orc_arm_r3.png";  
					hand1 =  @"orc_hand1.png";  
					hand2 =  @"orc_hand2.png";  
					hand3 =  @"orc_hand3.png";  
					hand4 =  @"orc_hand4.png";  
					hand5 =  @"orc_hand5.png";  
					hand6 =  @"orc_hand6.png";  
					body =   @"orc_body.png";  
					legs =   @"orc_legs.png";  
					feets =  @"orc_feets.png"; 
					icon =   @"orc_icon.png";
					
                    break;
                case CHAR_FISH:
                    head = @"fish_head.png";
					face0 = @"fish_face_cry.png"; 
					face1 = @"fish_face_angry.png"; 
					face2 = @"fish_face_normal.png"; 
					face3 = @"fish_face_smile.png"; 
					face4 = @"fish_face_happy.png"; 
					arm1 =  @"fish_arm_l1.png";  
					arm2 =  @"fish_arm_l2.png";  
					arm3 =  @"fish_arm_l3.png";  
					arm4 =  @"fish_arm_r1.png";  
					arm5 =  @"fish_arm_r2.png";  
					arm6 =  @"fish_arm_r3.png";  
					hand1 =  @"fish_hand_l_rock.png";  
					hand2 =  @"fish_hand_l_scissor.png";  
					hand3 =  @"fish_hand_l_paper.png";  
					hand4 =  @"fish_hand_r_rock.png";  
					hand5 =  @"fish_hand_r_scissor.png";  
					hand6 =  @"fish_hand_r_paper.png";  
					body =   @"fish_body.png";  
					legs =   @"fish_legs.png";  
					feets =  @"fish_feets.png"; 
					icon =   @"fish_icon.png";
					name =   @"Udine";
                    break;
                case CHAR_BASIC:
					head =   @"basic_head.png";
					face0 =  @"basic_face0.png"; 
					face1 =  @"basic_face1.png"; 
					face2 =  @"basic_face2.png"; 
					face3 =  @"basic_face3.png"; 
					face4 =  @"basic_face4.png"; 
					arm1 =   @"basic_arm1.png";  
					arm2 =   @"basic_arm2.png";  
					arm3 =   @"basic_arm3.png";  
					arm4 =   @"basic_arm4.png";  
					arm5 =   @"basic_arm5.png";  
					arm6 =   @"basic_arm6.png";  
					hand1 =  @"basic_hand1.png";  
					hand2 =  @"basic_hand2.png";  
					hand3 =  @"basic_hand3.png";  
					hand4 =  @"basic_hand4.png";  
					hand5 =  @"basic_hand5.png";  
					hand6 =  @"basic_hand6.png";  
					body =   @"basic_body.png";  
					legs =   @"basic_legs.png";  
					feets =  @"basic_feets.png"; 
					icon =   @"basic_icon.png";
					name =   @"Biasc";
					break;
                case CHAR_BIRD:
                    head = @"bird_head.png";
					face0 = @"bird_face_cry.png"; 
					face1 = @"bird_face_angry.png"; 
					face2 = @"bird_face_normal.png"; 
					face3 = @"bird_face_smile.png"; 
					face4 = @"bird_face_happy.png"; 
					arm1 =  @"bird_arm_l1.png";  
					arm2 =  @"bird_arm_l2.png";  
					arm3 =  @"bird_arm_l3.png";  
					arm4 =  @"bird_arm_r1.png";  
					arm5 =  @"bird_arm_r2.png";  
					arm6 =  @"bird_arm_r3.png";  
					hand1 =  @"bird_hand_l_rock.png";  
					hand2 =  @"bird_hand_l_scissor.png";  
					hand3 =  @"bird_hand_l_paper.png";  
					hand4 =  @"bird_hand_r_rock.png";  
					hand5 =  @"bird_hand_r_scissor.png";  
					hand6 =  @"bird_hand_r_paper.png";  
					body =  @"bird_body.png";  
					legs =  @"bird_legs.png";  
					feets = @"bird_feets.png"; 
					icon =  @"bird_icon.png";
					name =  @"Amon";
                    break;
				case CHAR_YINOCH:
					head = @"yinoch_head.png";
					face0 = @"yinoch_face0.png"; 
					face1 = @"yinoch_face1.png"; 
					face2 = @"yinoch_face2.png"; 
					face3 = @"yinoch_face3.png"; 
					face4 = @"yinoch_face4.png"; 
					arm1 =  @"yinoch_arm1.png";  
					arm2 =  @"yinoch_arm2.png";  
					arm3 =  @"yinoch_arm3.png";  
					arm4 =  @"yinoch_arm4.png";  
					arm5 =  @"yinoch_arm5.png";  
					arm6 =  @"yinoch_arm6.png";  
					hand1 =  @"yinoch_hand1.png";  
					hand2 =  @"yinoch_hand2.png";  
					hand3 =  @"yinoch_hand3.png";  
					hand4 =  @"yinoch_hand4.png";  
					hand5 =  @"yinoch_hand5.png";  
					hand6 =  @"yinoch_hand6.png";  
					body =  @"yinoch_body.png";  
					legs =  @"yinoch_legs.png";  
					feets = @"yinoch_feets.png"; 
					icon =  @"yinoch_icon.png";
					name =  @"Yinoch";
					break;
					
				case CHAR_EDEN:
					head = @"eden_head.png";
					face0 = @"eden_face0.png";  
					face1 = @"eden_face1.png";  
					face2 = @"eden_face2.png";  
					face3 = @"eden_face3.png";  
					face4 = @"eden_face4.png";  
					arm1 =  @"eden_arm1.png";   
					arm2 =  @"eden_arm2.png";   
					arm3 =  @"eden_arm3.png";   
					arm4 =  @"eden_arm4.png";   
					arm5 =  @"eden_arm5.png";   
					arm6 =  @"eden_arm6.png";
					hand1 =  @"eden_hand1.png";  
					hand2 =  @"eden_hand2.png";  
					hand3 =  @"eden_hand3.png";  
					hand4 =  @"eden_hand4.png";  
					hand5 =  @"eden_hand5.png";  
					hand6 =  @"eden_hand6.png";  
					body =  @"eden_body.png";   
					legs =  @"eden_legs.png";   
					feets = @"eden_feets.png";  
					icon =  @"eden_icon.png";   
					name =  @"Eden";
					
					break;
				case CHAR_ISZU:
					head = @"iszu_head.png";
					face0 = @"iszu_face0.png";
					face1 = @"iszu_face1.png";
					face2 = @"iszu_face2.png";
					face3 = @"iszu_face3.png";
					face4 = @"iszu_face4.png";
					arm1 =  @"iszu_arm1.png"; 
					arm2 =  @"iszu_arm2.png"; 
					arm3 =  @"iszu_arm3.png"; 
					arm4 =  @"iszu_arm4.png"; 
					arm5 =  @"iszu_arm5.png"; 
					arm6 =  @"iszu_arm6.png"; 
					hand1 =  @"iszu_hand1.png";  
					hand2 =  @"iszu_hand2.png";  
					hand3 =  @"iszu_hand3.png";  
					hand4 =  @"iszu_hand4.png";  
					hand5 =  @"iszu_hand5.png";  
					hand6 =  @"iszu_hand6.png";  
					
					body =  @"iszu_body.png"; 
					legs =  @"iszu_legs.png"; 
					feets = @"iszu_feets.png";
					icon =  @"iszu_icon.png"; 
					name =  @"Iszu";
					
					
            }
                
            
		health=100;

    }
    return self;
    
}

@end